{extend name="index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title">
                <li class="layui-this">前台页面设置</li>
            </ul>
            <div class="layui-tab-content">
                <form class="layui-form" method="post">
                    {:token()}
                    <div data-favisible="">
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">微信浏览器提示</label>
                            <div class="layui-input-block">
                                <input type="radio" name="row[weixin_notice]" value="1" title="开启" {if $config.weixin_notice}checked{/if}>
                                <input type="radio" name="row[weixin_notice]" value="0" title="关闭" {if !$config.weixin_notice}checked{/if}>
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">开启：微信浏览器内提示请在浏览器打开；关闭：微信浏览器内正常访问。</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">站点标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[index_title]" placeholder="请输入站点标题" autocomplete="off" class="layui-input" value="{$config.index_title}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：订单详情</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">头部滚动提示</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[top_notice]" placeholder="请输入头部滚动提示" autocomplete="off" class="layui-input" value="{$config.top_notice}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：全网更新，订单已被拦截(未及时办理将扣除保证金:1000元整)</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">页面说明</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea"  name="row[center_notice]" placeholder="请输入页面说明">{$config.center_notice}</textarea>
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：兼职刷单及套现属于违规、违法行为...</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">收货地址</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[address]" placeholder="请输入收货地址信息" autocomplete="off" class="layui-input" value="{$config.address}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：林*洋170****5959 江*省 赣*市 赣*区 ***********</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">订单头部提示</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[order_top_notice]" placeholder="请输入订单提示" autocomplete="off" class="layui-input" value="{$config.order_top_notice}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：当前订单暂时无法查看，请及时联系下方客服...</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">订单图片</label>
                            <div class="layui-input-block">
                                <div class="layui-col-xs4">
                                    <input type="text" name="row[order_img]"  id="c-order_img" value="{$config.order_img}" class="layui-input">
                                </div>
                                <button type="button" class="layui-btn faupload" id="faupload-order_img" data-multiple="false" data-input-id="c-order_img" data-preview-id="p-order_img" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传</button><button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image" data-input-id="c-order_img" id="fachoose-c-order_img"><i class="iconfont icon-other"></i> 选择</button>
                                <ul class="layui-row list-inline plupload-preview" id="p-order_img"></ul>
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">请上传订单的图片，图片尺寸：<span class="">750*750</span></div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">订单提示</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[order_notice]" placeholder="请输入订单提示" autocomplete="off" class="layui-input" value="{$config.order_notice}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：当系统提醒:《未及时办理将扣除保证金(保证金￥不足扣除账户余额1000元整)》..</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">订单标签</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[order_tag]" placeholder="请输入标签" autocomplete="off" class="layui-input" value="{$config.order_tag}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：官方直送|48小时发货|破损包赔7天包换|材质保障|少货必赔</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">订单状态</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[order_state]" placeholder="请输入订单状态" autocomplete="off" class="layui-input" value="{$config.order_state}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：待付款</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">发货承诺</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[order_fahuo]" placeholder="请输入发货承诺 " autocomplete="off" class="layui-input" value="{$config.order_fahuo}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：订单承诺限时发货，延迟可理赔</div>
                        </div>

                         <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">应付款标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[order_pay_title]" placeholder="请输入应付款标题 " autocomplete="off" class="layui-input" value="{$config.order_pay_title}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：淘宝网</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">应付款文字</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[order_pay_text]" placeholder="请输入应付款文字 " autocomplete="off" class="layui-input" value="{$config.order_pay_text}">
                            </div>
                            <div class="layui-form-mid2 layui-word-aux">例如：****￥***</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-item-required">在线客服地址</label>
                            <div class="layui-input-block">
                                <input type="text" name="row[kefu_url]" placeholder="请输入客服地址" autocomplete="off" class="layui-input" value="{:htmlspecialchars_decode($config.kefu_url)}">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item layer-footer">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit data-refresh="false">立即提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}
